package apple

import (
	"testing"

	"github.com/go-pay/xlog"
)

func TestGetAllSubscriptionStatuses(t *testing.T) {
	originalTransactionId := "2000000184445477"

	rsp, err := client.GetAllSubscriptionStatuses(ctx, originalTransactionId)
	if err != nil {
		if statusErr, ok := IsStatusCodeError(err); ok {
			xlog.Errorf("%+v", statusErr)
			// do something
			return
		}
		xlog.Errorf("client.GetAllSubscriptionStatuses(),err:%+v", err)
		return
	}
	/**
	{
		"appAppleId":0,
		"bundleId":"Com.VoiceRecording.Telephone",
		"environment":"Sandbox",
		"data":[
			{
				"subscriptionGroupIdentifier":"21024612",
				"lastTransactions":[
					{
						"originalTransactionId":"2000000184445477",
						"status":2,
						"signedRenewalInfo":"eyJhbGciOiJFUzI1NiIsIng1YyI6WyJNSUlFTURDQ0E3YWdBd0lCQWdJUWFQb1BsZHZwU29FSDBsQnJqRFB2OWpBS0JnZ3Foa2pPUFFRREF6QjFNVVF3UWdZRFZRUURERHRCY0hCc1pTQlhiM0pzWkhkcFpHVWdSR1YyWld4dmNHVnlJRkpsYkdGMGFXOXVjeUJEWlhKMGFXWnBZMkYwYVc5dUlFRjFkR2h2Y21sMGVURUxNQWtHQTFVRUN3d0NSell4RXpBUkJnTlZCQW9NQ2tGd2NHeGxJRWx1WXk0eEN6QUpCZ05WQkFZVEFsVlRNQjRYRFRJeE1EZ3lOVEF5TlRBek5Gb1hEVEl6TURreU5EQXlOVEF6TTFvd2daSXhRREErQmdOVkJBTU1OMUJ5YjJRZ1JVTkRJRTFoWXlCQmNIQWdVM1J2Y21VZ1lXNWtJR2xVZFc1bGN5QlRkRzl5WlNCU1pXTmxhWEIwSUZOcFoyNXBibWN4TERBcUJnTlZCQXNNSTBGd2NHeGxJRmR2Y214a2QybGtaU0JFWlhabGJHOXdaWElnVW1Wc1lYUnBiMjV6TVJNd0VRWURWUVFLREFwQmNIQnNaU0JKYm1NdU1Rc3dDUVlEVlFRR0V3SlZVekJaTUJNR0J5cUdTTTQ5QWdFR0NDcUdTTTQ5Q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 {
		xlog.Debugf("rsp:%+v", rsp)
	}
	for _, dataItem := range rsp.Data {
		for _, lastTransaction := range dataItem.LastTransactions {
			ti, _ := lastTransaction.DecodeTransactionInfo()
			xlog.Debugf("TransactionInfo:%+v", ti)

			ri, _ := lastTransaction.DecodeRenewalInfo()
			xlog.Debugf("RenewalInfo:%+v", ri)

		}
	}
}
